package com.pureut.quality.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pureut.quality.domain.AuditNonconformity;
import com.pureut.quality.domain.AuditSummary;
import com.pureut.quality.domain.vo.AuditSummaryVo;
import com.pureut.quality.mapper.AuditNonconformityMapper;
import com.pureut.quality.mapper.AuditSummaryMapper;
import com.pureut.quality.service.AuditNonconformityService;
import com.pureut.quality.service.IAuditSummaryService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 审核总结报告Service业务层处理
 *
 * @author ruoyi
 * @date 2025-04-09
 */
@Service
public class AuditSummaryServiceImpl extends ServiceImpl<AuditSummaryMapper, AuditSummary> implements IAuditSummaryService {

    @Autowired
    private AuditSummaryMapper auditSummaryMapper;

    /**
     * 新增审核总结报告
     * @param auditSummaryVo
     * @return
     */
    @Override
    @Transactional(rollbackFor = Exception.class)
    public boolean saveAuditSummary(AuditSummaryVo auditSummaryVo) {
        AuditSummary auditSummary = new AuditSummary();
        BeanUtils.copyProperties(auditSummaryVo, auditSummary);
        return save(auditSummary);
    }


}
